package com.sjgtw.cloud.app.riskReporting.mapper;

import com.sjgtw.cloud.app.riskReporting.domain.RiskReporting;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * 风险上报Mapper接口
 * 
 * @author ruoyi
 * @date 2024-03-17
 */
public interface RiskReportingMapper 
{
    /**
     * 查询风险上报
     * 
     * @param id 风险上报主键
     * @return 风险上报
     */
    public RiskReporting selectRiskReportingById(Long id);

    /**
     * 查询风险上报列表
     * 
     * @param riskReporting 风险上报
     * @return 风险上报集合
     */
    public List<Map<String,Object>> selectRiskReportingList(RiskReporting riskReporting);

    public List<Map<String,Object>> selectTaskManagementList(RiskReporting riskReporting);

    public List<Map<String,Object>> getEmergencyTask();

    /**
     * 新增风险上报
     * 
     * @param riskReporting 风险上报
     * @return 结果
     */
    public int insertRiskReporting(RiskReporting riskReporting);

    /**
     * 修改风险上报
     * 
     * @param riskReporting 风险上报
     * @return 结果
     */
    public int updateRiskReporting(RiskReporting riskReporting);

    public List<Map<String,Object>> getTaskDistributeUser(@Param("ids") String [] ids);

    /**
     * 删除风险上报
     * 
     * @param id 风险上报主键
     * @return 结果
     */
    public int deleteRiskReportingById(Long id);

    /**
     * 批量删除风险上报
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteRiskReportingByIds(Long[] ids);

    List<Map<String, Object>> screenList();

    Map<String, Object> screenDetail(Long id);
}
